package com.qcxk.yuqian.rtu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.qcxk.yuqian.rtu.controller.model.query.RtuAnalogDataDTO;
import com.qcxk.yuqian.rtu.controller.model.query.RtuDataDTO;
import com.qcxk.yuqian.rtu.entity.RtuHisData;
import com.qcxk.yuqian.rtu.entity.RtuOriginalData;
import com.qcxk.yuqian.rtu.mapper.RtuDataMapper;
import com.qcxk.yuqian.rtu.mapper.RtuHisDataMapper;
import com.qcxk.yuqian.rtu.service.IRtuDataService;
import com.qcxk.yuqian.rtu.service.IRtuHisDataService;
import javafx.scene.control.Pagination;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auther lp
 * @create 2021-11-15 03:23:05
 * @describe 服务实现类
 */
@Service
public class RtuHisDataServiceImpl extends ServiceImpl<RtuHisDataMapper, RtuHisData> implements IRtuHisDataService {
    @Autowired
    private RtuDataMapper rtuDataMapper;
    @Autowired
    private RtuHisDataMapper rtuHisDataMapper;


    @Override
    public Page queryRtuHisDataPage(Page page, RtuHisData rtuHisData, String startTime, String endTime) {

        return page;
    }

    @Override
    public List<RtuDataDTO> findDataList(RtuDataDTO dto) {
        return rtuHisDataMapper.findDataList(dto);
    }

    @Override
    public boolean deleteRtuDataById(RtuOriginalData rtuOriginalData) {
        return false;
    }

    @Override
    public List<RtuAnalogDataDTO> findRtuAnalogDataList(RtuAnalogDataDTO dto) {
        return rtuHisDataMapper.findRtuAnalogDataList(dto);
    }

    @Override
    public List<RtuDataDTO> selectRtuCData(RtuDataDTO dto) {
        return rtuHisDataMapper.selectRtuCData(dto);
    }
}
